{% extends "base.html" %} {% block title %}Virtual Office — LegalEase AI{% endblock %} {% block content %}

Virtual Office

Welcome, {{ user.full_name }} — manage your active cases here

{% if not lawyer %}
Your lawyer profile was not found. Ensure your registration email matches the dataset email.
{% endif %}
{{ cases|length }}
Active Cases
{{ appointments|selectattr('status','equalto','pending')|list|length }}
Pending Appointments
{{ appointments|selectattr('status','equalto','confirmed')|list|length }}
Confirmed
Case Tray
{% if cases %} {% for case in cases %} {% endfor %}
Case Ref Category Status Date Action
{{ case.case_reference_no if case.case_reference_no else 'CASE-' ~ case.id }} {{ case.category or 'Unclassified' }} {% set sc = {'pending':'var(--warning)','reviewed':'var(--accent)','filed':'#1D4ED8','hearing_scheduled':'#f472b6','resolved':'var(--success)'} %} ● {{ case.status.replace('_',' ').title() }} {{ case.created_at.strftime('%d %b %Y') if case.created_at else '—' }} Open Workspace
{% else %}
No active cases yet. Accept an appointment to see cases here.
{% endif %}
Appointment Requests
{% if appointments %} {% for appt in appointments %}
{{ appt.appointment_date }} at {{ appt.appointment_time }}
{{ appt.notes or 'No notes' }}
{% if appt.status == 'pending' %}
{% else %} {{ appt.status.title() }} {% endif %}
{% endfor %} {% else %}
No appointments yet.
{% endif %}
{% endblock %}